var dbUtil = require('./dbUtil')

function isExits(user,callback) {

    var sql = "select * from user where username=? and password=?";
    var params = [user.username,user.password];

    dbUtil.query(sql,params,function(err,result,field){
        callback(err,result,field)
    }) ;

}

module.exports = {
    isExits
}